package march.test_3_13;

import java.util.Scanner;

public class TestMain2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true) {
            int n = scanner.nextInt();
            int tmp = n;
            int i = 0;
            boolean a = true;
            while (true) {
                while (tmp > 0) {
                    if(i%5 != 1) {
                        a = false;
                        break;
                    }
                    tmp--;
                }
                if(a) {
                    break;
                }
                i++;
            }

        }
    }
}
